//
//  NSString+Tools.h
//  CarService
//
//  Created by Nimo.Yu on 15/1/30.
//  Copyright (c) 2015年 lexingsoft. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface NSString (Tools)
///计算字符串Md5值
+ (NSString *) md5:(NSString *) input;

///计算字符串sha1值
+ (NSString *) sha1:(NSString *)input;

///计算文本宽度
+ (CGFloat)calcWidthText:(NSString *)text font:(UIFont *)font;

///计算文本Size
+ (CGSize)calcSizeText:(NSString *)text font:(UIFont *)font;

///有效小数
+ (NSString *) stringFromDecimalNumber:(NSNumber *)number;
@end
